package com.zx._09_架构.重构;

public class 冗长方法的分割 {

    class BadExample {

        public void someMethod() {
            //function[1]
            //function[2]
            //function[3]
        }
    }

    /* ---------------------分割线---------------------- */

    class GoodExample {

        public void someMethod() {
            function1();
            function2();
            function3();
        }

        private void function1() {
            //function[1]
        }

        private void function2() {
            //function[2]
        }

        private void function3() {
            //function[3]
        }

    }
}
